package com.ruoyi.project.jiaqin.company.domain;

import com.ruoyi.project.jiaqin.supply.domain.Supply;
import com.ruoyi.project.system.member.domain.Member;
import com.ruoyi.project.system.member.domain.MemberIdentity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.framework.aspectj.lang.annotation.Excel;
import com.ruoyi.framework.web.domain.BaseEntity;

import java.math.BigDecimal;
import java.util.Date;
import java.util.List;

/**
 * 公司对象 company
 *
 * @author admin
 * @date 2021-01-05
 */
public class Company extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /** ID */
    private String id;

    /** 用户ID */
    @Excel(name = "用户ID")
    private String memberId;
    private String memberName;

    public String getMemberName() {
        return memberName;
    }

    public void setMemberName(String memberName) {
        this.memberName = memberName;
    }

    @Excel(name = "系统用户")
    private Long sysUserId;

    public Long getSysUserId() {
        return sysUserId;
    }

    public void setSysUserId(Long sysUserId) {
        this.sysUserId = sysUserId;
    }

    /** 公司头像 */
    @Excel(name = "公司头像")
    private String companyAvatar;

    /** 公司名称 */
    @Excel(name = "公司名称")
    private String companyName;

    /** 公司地址 */
    @Excel(name = "公司地址")
    private String companyAddr;

    /** 企业电话 */
    @Excel(name = "企业电话")
    private String companyPhone;

    /** 微信号 */
    @Excel(name = "微信号")
    private String wechat;

    public String getWechat() {
        return wechat;
    }

    public void setWechat(String wechat) {
        this.wechat = wechat;
    }

    /** 企业号*/
    @Excel(name = "企业号")
    private String companyNum;

    public String getCompanyNum() {
        return companyNum;
    }

    public void setCompanyNum(String companyNum) {
        this.companyNum = companyNum;
    }

    private Long province;

    private Long city;

    private Long area;

    private String provinceName;

    private String cityName;

    private String areaName;

    private String industry;

    private BigDecimal longitude;

    private BigDecimal latitude;

    /** 注册时间 */
    private Date created;
    /** 修改时间 */
    private Date updatedTime;
    /** 关闭发新闻：0-开启 1-关闭 */
    private Integer newsClose;

    /** 是否是行情官：0-否，1-是 */
    private Integer quotation;

    /** 排序 */
    private Long sort;

    public Long getSort() {
        return sort;
    }

    public void setSort(Long sort) {
        this.sort = sort;
    }

    public Integer getQuotation() {
        return quotation;
    }

    public void setQuotation(Integer quotation) {
        this.quotation = quotation;
    }

    /** 知名企业：0-否 1-列表 2-首页 */
    private Integer isFamous;
    public Integer getIsFamous() {
        return isFamous;
    }

    /** 距离 */
    private String distance;

    public String getDistance() {
        return distance;
    }

    public void setDistance(String distance) {
        this.distance = distance;
    }
    public void setIsFamous(Integer isFamous) {
        this.isFamous = isFamous;
    }

    public Integer getNewsClose() {
        return newsClose;
    }

    public void setNewsClose(Integer newsClose) {
        this.newsClose = newsClose;
    }

    public Date getCreated() {
        return created;
    }

    public void setCreated(Date created) {
        this.created = created;
    }

    public Date getUpdatedTime() {
        return updatedTime;
    }

    public void setUpdatedTime(Date updatedTime) {
        this.updatedTime = updatedTime;
    }

    public BigDecimal getLongitude() {
        return longitude;
    }

    public void setLongitude(BigDecimal longitude) {
        this.longitude = longitude;
    }

    public BigDecimal getLatitude() {
        return latitude;
    }

    public void setLatitude(BigDecimal latitude) {
        this.latitude = latitude;
    }

    private boolean follow;


    private MemberIdentity memberIdentity;

    public Long getProvince() {
        return province;
    }

    public void setProvince(Long province) {
        this.province = province;
    }

    public Long getCity() {
        return city;
    }

    public void setCity(Long city) {
        this.city = city;
    }

    public Long getArea() {
        return area;
    }

    public void setArea(Long area) {
        this.area = area;
    }

    public String getIndustry() {
        return industry;
    }

    public void setIndustry(String industry) {
        this.industry = industry;
    }

    public String getProvinceName() {
        return provinceName;
    }

    public void setProvinceName(String provinceName) {
        this.provinceName = provinceName;
    }

    public String getCityName() {
        return cityName;
    }

    public void setCityName(String cityName) {
        this.cityName = cityName;
    }

    public String getAreaName() {
        return areaName;
    }

    public void setAreaName(String areaName) {
        this.areaName = areaName;
    }

    public MemberIdentity getMemberIdentity() {
        return memberIdentity;
    }

    public void setMemberIdentity(MemberIdentity memberIdentity) {
        this.memberIdentity = memberIdentity;
    }

    public boolean isFollow() {
        return follow;
    }

    public void setFollow(boolean follow) {
        this.follow = follow;
    }

    private List<Supply> supplies;

    private Member member;

    public Member getMember() {
        return member;
    }

    public void setMember(Member member) {
        this.member = member;
    }

    public List<Supply> getSupplies() {
        return supplies;
    }

    public void setSupplies(List<Supply> supplies) {
        this.supplies = supplies;
    }

    public void setId(String id)
    {
        this.id = id;
    }

    public String getId()
    {
        return id;
    }
    public void setMemberId(String memberId)
    {
        this.memberId = memberId;
    }

    public String getMemberId()
    {
        return memberId;
    }
    public void setCompanyAvatar(String companyAvatar)
    {
        this.companyAvatar = companyAvatar;
    }

    public String getCompanyAvatar()
    {
        return companyAvatar;
    }
    public void setCompanyName(String companyName)
    {
        this.companyName = companyName;
    }

    public String getCompanyName()
    {
        return companyName;
    }
    public void setCompanyAddr(String companyAddr)
    {
        this.companyAddr = companyAddr;
    }

    public String getCompanyAddr()
    {
        return companyAddr;
    }
    public void setCompanyPhone(String companyPhone)
    {
        this.companyPhone = companyPhone;
    }

    public String getCompanyPhone()
    {
        return companyPhone;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("memberId", getMemberId())
            .append("companyAvatar", getCompanyAvatar())
            .append("companyName", getCompanyName())
            .append("companyAddr", getCompanyAddr())
            .append("companyPhone", getCompanyPhone())
            .append("quotation", getQuotation())
            .append("sort", getSort())
            .append("companyNum", getCompanyNum())
            .append("wechat", getWechat())
            .toString();
    }
}
